package com.example.entity;

import com.example.base.Cache.Cacheable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "sysdata")
public class Sysdata extends BaseEntity implements Serializable, Cacheable {

	private static final long serialVersionUID = -7758514614975252L;

	@Column(name = "code")
	private String code;// 参数代码

	@Column(name = "name")
	private String name;// 参数名

	@Column(name = "sys_value")
	private String sysValue;// 参数值

	@Column(name = "type")
	private String type;// 类型



	public String getCode() {

		return this.code;
	}

	public void setCode(String code) {

		this.code = code;
	}

	public String getName() {

		return this.name;
	}

	public void setName(String name) {

		this.name = name;
	}

	public String getSysValue() {

		return this.sysValue;
	}

	public void setSysValue(String sysValue) {

		this.sysValue = sysValue;
	}

	public String getType() {

		return this.type;
	}

	public void setType(String type) {

		this.type = type;
	}

	@Override
	public String cacheKey() {

		return this.code.toString();
	}
}
